/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import pojo.Nhanvien;

/**
 *
 * @author Quan
 */
public class NhanVienDAO extends dao.TableDAO {

    public NhanVienDAO() {
        hql_laydanhsach = "from Nhanvien";
        hql_lay = "from Nhanvien where id = :id";
    }

    public void DoiMatKhau(Nhanvien nv, String new_password) throws Exception {
        nv.setMatkhau(new_password);
        Sua(nv);
    }
    
}
